package com.zhousb.deviceManager.controller;

import com.zhousb.deviceManager.common.R;
import com.zhousb.deviceManager.common.ResponseResult;
import com.zhousb.deviceManager.model.bo.InventorySubmitBo;
import com.zhousb.deviceManager.service.InventoryService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhousb
 * @date 2024/10/31 11:11
 * @description
 */
@RestController
@RequestMapping("/inventory")
public class InventoryController {

    @Resource
    private InventoryService inventoryService;

    @PostMapping("/submit")
    public ResponseResult<?> submit(@RequestBody InventorySubmitBo bo){
return R.success(inventoryService.submit(bo));
    }
}
